package wu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import wu.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
@Repository
public interface DeptMapper extends BaseMapper<Dept> {

    //xml文件实现
    public List<Dept> xml();


    //注解形式开发
    @Select("select * from dept where deptno = #{id}")
    Dept findAnnootion(Long id);
}
